package com.xiaoq.order.vo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import org.mongodb.morphia.annotations.Embedded;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by chenjh on 2017/11/7.
 */
@JsonInclude(value = JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public class ShopOrderAddition implements Serializable{
    private static final long serialVersionUID = -5947656363422100891L;

    @ApiModelProperty(name = "userId", value = "下单人id", position = 10)
    private String userId; //下单人id

    @ApiModelProperty(name = "cellphoneNumber", value = "下单人电话", position = 20)
    private String cellphoneNumber; //下单人电话

    @ApiModelProperty(name = "userRealName", value = "下单人真实姓名", position = 30)
    private String userRealName; //下单人真实姓名

    @ApiModelProperty(name = "shopId", value = "店ID", position = 40)
    private String shopId; //小店ID

    @ApiModelProperty(name = "shopName", value = "店名称", position = 50)
    private String shopName; //小店名称

    @ApiModelProperty(name = "totalMoneyOfUsedCoupons", value = "优惠券总金额(元)", position = 60)
    private int totalMoneyOfUsedCoupons; //优惠券总金额

    @ApiModelProperty(name = "couponCode", value = "优惠券编码couponInstanceCode", position = 70)
    private String couponCode; //本次订单中使用的优惠券编码,对应于UserCouponEntity中的couponInstanceEntity

    @ApiModelProperty(name = "userCouponId", value = "优惠券的Id", position = 80)
    private String userCouponId; //优惠券的Id

    @ApiModelProperty(name = "shoppingItems", value = "购买的商品条目集合", position = 90)
    @Embedded
    private List<ShoppingItemAddition> shoppingItems = new ArrayList<>(); //本次在当前小店中购买的商品条目集合

	@ApiModelProperty(name = "idCard", value = "身份证", position = 100)
	private String idCard;

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getCellphoneNumber() {
		return cellphoneNumber;
	}

	public void setCellphoneNumber(String cellphoneNumber) {
		this.cellphoneNumber = cellphoneNumber;
	}

	public String getUserRealName() {
		return userRealName;
	}

	public void setUserRealName(String userRealName) {
		this.userRealName = userRealName;
	}

	public String getShopId() {
		return shopId;
	}

	public void setShopId(String shopId) {
		this.shopId = shopId;
	}

	public String getShopName() {
		return shopName;
	}

	public void setShopName(String shopName) {
		this.shopName = shopName;
	}

	public int getTotalMoneyOfUsedCoupons() {
		return totalMoneyOfUsedCoupons;
	}

	public void setTotalMoneyOfUsedCoupons(int totalMoneyOfUsedCoupons) {
		this.totalMoneyOfUsedCoupons = totalMoneyOfUsedCoupons;
	}

	public String getCouponCode() {
		return couponCode;
	}

	public void setCouponCode(String couponCode) {
		this.couponCode = couponCode;
	}

	public String getUserCouponId() {
		return userCouponId;
	}

	public void setUserCouponId(String userCouponId) {
		this.userCouponId = userCouponId;
	}

	public List<ShoppingItemAddition> getShoppingItems() {
		return shoppingItems;
	}

	public void setShoppingItems(List<ShoppingItemAddition> shoppingItems) {
		this.shoppingItems = shoppingItems;
	}

	public String getIdCard() {
		return idCard;
	}

	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}
}
